<!DOCTYPE html>
<html>
{include file="public/head" /}
<body class="zanpian-body">        
<section class="content">
  <div class="panel-body" id="contents">
<div class="panel-tool">
<div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12 mb15">
                <div id="toolbar" class="toolbar">
                <div class="w200" style="float:left; margin-right:10px;">
                 <select name="status" class="form-control select2 margin10" type="ajax-select">
                  <option value="{:url('index',array('sid'=>999))}">全部类型</option>
                  {volist name=":config('model')" id="vo"}
                  {notin name="vo.id" value="7,8,9,10,11,13"}
                  <option value="{:url('index',array('sid'=>$vo.id))}" {eq name="vo.id" value="$sid"}selected{/eq}>{$vo.title}</option>
                  {/notin}
                  {/volist}
                  <option value="{:url('index',array('sid'=>99))}" {eq name="sid" value="99"}selected{/eq}>评论</option>
                </select>     
                </div>          
                <a href="{:url('index')}" class="btn btn-primary ajax-url"><i class="fa fa-refresh"></i> </a> 
              <a href="{:url('add')}" data-name="添加配置" class="btn btn-success btn-add btn-editone"><i class="fa fa-plus"></i> 添加</a> <button type="button" id="plupload-addon" class="btn btn-navy plupload" data-url="{:url('import')}" data-mimetype="application/octet-stream" data-multiple="false" initialized="true" style="position: relative; z-index: 1;"><i class="fa fa-upload"></i> 导入</button> <a  href="{:url('status',array('status'=>1))}" form="#list" class="confirm btn btn-info btn-disabled  ajax-post disabled"><i class="fa fa-unlock"></i> 启用</a> <a  href="{:url('status',array('status'=>0))}" form="#list" class="confirm btn btn-warning btn-disabled  ajax-post disabled"><i class="fa fa-lock"></i> 禁用</a> <a  href="{:url('del')}" form="#list" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a><span id="selectedChks">已选择<strong></strong>记录</span>
                </div>
                <!-- /.toolbar -->
              </div>
             <div class="col-md-4 col-sm-6 col-xs-12 mb15">
                 <div class="pull-right search">
                {notempty name="jumpurl"}<a href="{$jumpurl}" class="form-control" style="font-weight:bold; color:#F00; border:none">上次有采集任务没有完成，是否接着采集?</a>{/notempty}
              </div>                                         
             </div>
            </div>

</div>
<!-- /.panel-tool -->
    <div class="tab-content">
      <form id="list" method="post">
        <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
          <thead>
            <tr>
              <th style="text-align:center;vertical-align: middle; width:5%"> <label class="pretty success">
                <input type="checkbox" id="checkall" class="delcheckall">
                <label><i class="mdi mdi-check"></i></label>
                </label>
              </th>
              <th style="text-align:center;vertical-align: middle;">编号</th>
              <th style="text-align:left;vertical-align: middle; width:40%">资源信息</th>
              <th style="text-align:center;vertical-align: middle;">采集当天</th>
              <th style="text-align:center;vertical-align: middle;">采集本周</th>
              <th style="text-align:center;vertical-align: middle;">采集所有</th>
              <th style="text-align:center;vertical-align: middle;">采集状态</th>
              <th style="text-align:center;vertical-align: middle;">数据操作</th>
            </tr>
          </thead>
          <tbody>
          
          {notempty name="list"}
          {volist name="list" id="vo"}
          {empty name="vo.collect_ad"}
            <tr>
             <td class="bs-checkbox" style="text-align:center;vertical-align:middle; font-size:14px"><label class="pretty success">
              <input type="checkbox" name="id[]" value="{$vo['collect_id']}" id="checkbox">
              <label><i class="mdi mdi-check"></i></label>
              </label></td>           
            <td style="text-align:center;vertical-align: middle;">{$vo['collect_id']}</td>
            <td style="text-align:left;vertical-align: middle;"><a class="text-link " href="{:url('api',array('sid'=>$vo['collect_cid'],'status'=>$vo['collect_status'],'ac'=>'show','type'=>$vo['collect_type'],'apiid'=>$vo['collect_id'],'apiurl'=>base64_encode($vo['collect_url']),'param'=>base64_encode($vo['collect_other'])))}">{$vo.collect_name} {$vo.collect_title}</a></td>
            <td style="text-align:center;vertical-align: middle;"><a class="text-link " href="{:url('api',array('sid'=>$vo['collect_cid'],'status'=>$vo['collect_status'],'ac'=>'day','type'=>$vo['collect_type'],'apiid'=>$vo['collect_id'],'apiurl'=>base64_encode($vo['collect_url']),'param'=>base64_encode($vo['collect_other']),'h'=>24))}">采集当天</a></td>
            <td style="text-align:center;vertical-align: middle;"><a class="text-link " href="{:url('api',array('sid'=>$vo['collect_cid'],'status'=>$vo['collect_status'],'ac'=>'day','type'=>$vo['collect_type'],'apiid'=>$vo['collect_id'],'apiurl'=>base64_encode($vo['collect_url']),'param'=>base64_encode($vo['collect_other']),'h'=>98))}">采集本周</a></td>
            <td style="text-align:center;vertical-align: middle;"><a class="text-link " href="{:url('api',array('sid'=>$vo['collect_cid'],'status'=>$vo['collect_status'],'ac'=>'all','type'=>$vo['collect_type'],'apiid'=>$vo['collect_id'],'apiurl'=>base64_encode($vo['collect_url']),'param'=>base64_encode($vo['collect_other'])))}">采集所有</a></td>
            <td style="text-align:center;vertical-align: middle;">{eq name="vo.collect_status" value="1"}
                 <a  class="btn btn-info btn-xs btn-danger ajax-post" href="{:url('admin/collect/status',array('id'=> $vo['collect_id'],'status'=>0))}">锁定</a>{else /}<a class="btn  btn-xs btn-default ajax-post" href="{:url('admin/collect/status',array('id'=> $vo['collect_id'],'status'=>1))}">正常</a>{/eq}</td>
            <td style="text-align:center;vertical-align: middle;">{neq name="vo.collect_admin" value="1"} <a href="{:url('export',array('id'=>$vo['collect_id']))}" class="btn btn-default btn-xs">导出</a> <a href="{:url('edit',array('id'=>$vo['collect_id']))}"  data-name="编辑" class="btn btn-success btn-editone btn-xs"><i class="fa fa-pencil"></i> 编辑</a> <a href="{:url('del',array('id'=>$vo['collect_id']))}" class="confirm btn btn-danger btn-xs confirm ajax-post"><i class="fa fa-trash-o"></i> 删除</a>{else/}<a href="{:url('import',array('txt'=>base64_encode(json_encode($vo))))}" class="btn btn-default btn-xs ajax-post">导入到本地</a>{/neq}</td>
          </tr>  
         {/empty}            
         {/volist}
          {else/}
          <tr>
            <td style="text-align:center;vertical-align: middle;" colspan="15" >抱歉，没有找到相关内容请先添加！</td>
          </tr>
          {/notempty}
          </tbody>
          
        </table>
      </form>
    </div>
 </div>
  <!-- /.panel-body -->
</section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.play();
});	
</script>
</body>
</html>
